<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="content-type" content="text/html;charset=utf-8" />
	<meta name="author" content="Francesco Trozzi" />
	<link rel="stylesheet" href="css/style.css" type="text/css" />
	<script src="js/jquery.js" type="text/javascript"></script>
	<script src="js/jquery.json-2.3.min.js" type="text/javascript"></script>
	<!-- SLIDER MENU -->
	<script src="js/menu/slidermenu.js" type="text/javascript"></script>
	<script src="js/menu/slidermenuconfig.js" type="text/javascript"></script>
	<script src="js/toolbar.js" type="text/javascript"></script>
    <!-- JQUERY UI STYLESHEET -->
    <link rel="stylesheet" href="css/base/jquery-ui-1.8.20.custom.css">
    <!-- JQUERY UI -->
	<script src="js/ui/jquery.ui.core.js"></script>
	<script src="js/ui/jquery.effects.core.js"></script>
	<script src="js/ui/jquery.effects.explode.js"></script>
	<script src="js/ui/jquery.effects.scale.js"></script>
	<script src="js/ui/jquery.effects.bounce.js"></script>
	<script src="js/ui/jquery.ui.widget.js"></script>
	<script src="js/ui/jquery.ui.tabs.js"></script>
	<script src="js/ui/jquery.ui.button.js"></script>
	<script src="js/ui/jquery.ui.position.js"></script>
	<script src="js/ui/jquery.ui.dialog.js"></script>
	<script src="js/ui/jquery.ui.mouse.js"></script>
	<script src="js/ui/jquery.ui.draggable.js"></script>
	<script src="js/ui/jquery.ui.droppable.js"></script>
	<!-- MESSAGGIO -->
	<script src="js/messaggio.js" type="text/javascript"></script>
	<!-- AJAX -->
	<script src="js/ajax.js" type="text/javascript"></script>
	<!-- BACHECA -->
	<script type="text/javascript" src="js/bacheca.js"></script>
	<!-- GALLERIA  -->
	<script src="js/galleria.js" type="text/javascript"></script>
	<!-- MI PIACE  -->
	<script src="js/mipiace.js" type="text/javascript"></script>
	<!-- VOTO FOTO  -->
	<script src="js/votofoto.js" type="text/javascript"></script>
	<!-- COMMENTI FOTO  -->
	<script src="js/commentifoto.js" type="text/javascript"></script>
	<!-- REGISTRAZIONE/LOGIN -->
	<script type="text/javascript" src="js/registrazione.js"></script>
	<script type="text/javascript" src="js/login.js"></script>
	<!-- FORM CONTROL -->
	<script type="text/javascript" src="js/formControl.js"></script>
	<!-- MODIFICA GALLERY -->
	<script type="text/javascript" src="js/modificaGallery.js"></script>
	<!-- MODIFICA NOME FOTO -->
	<script type="text/javascript" src="js/modificatitolo.js"></script>
	<!-- MODIFICA DESCRIZIONE FOTO -->
	<script type="text/javascript" src="js/modificadescrizione.js"></script>
	<!-- NEWS -->
	<script type="text/javascript" src="js/lastNews.js"></script>
	<!-- SLIDESHOW -->
	<script type="text/javascript" src="js/slideshow.js"></script>
	<script type="text/javascript">
	$(document).ready(function(){ldelim}
		
		{if isset($v_utente)}
		
		window.gestoreNotizie = new LastNews('{$v_utente->getUsername()}','#iscrizioni','#amici');
		
		{/if}
		
	{rdelim});
	</script>
</head>
<body>

  <div id="dialog-message"></div>
  <div id="maincontainer">
  <div id="topsection">
    
  <div id="logo">
  <a href="index.php"><div class="home"></div></a>
  </div>
  
  <!--div id="searchbar">
  <form method="get" id="searchform" action="#">
  <fieldset class="search">
	<input type="text" class="box" />
	<button class="btn" title="Submit Search"></button>
  </fieldset>
  </form>
  </div-->
  
  

  <div id="toolbar">
    <ul>
        <li><span class="head_menu">  	
     {if !is_null($v_utente) }
	     	<a href="#">Benvenuto {$v_utente->getNome()|escape}</a>
					<div class="sub_menu">
						 <a href="index.php?c=CUtente&a=mostraProfilo" >Il tuo profilo</a>
						 <a href="index.php?c=CGallery&a=mostraGalleries"class="item_line">Le tue gallerie</a>
						 <a href="index.php?c=CFoto&a=viewfotoutente">Le tue foto</a>
						 <a href="index.php?c=CFoto&a=upload" class="item_line">Carica una foto</a>
						 <a href="index.php?c=CGallery&a=aggiungiGallery" class="item_line">Crea una gallery</a>
						 <a href="index.php?c=CGallery&a=organizzaFoto" class="item_line">Organizza le foto e gli album</a>
						 <a href="index.php?c=CRegistrazione&a=logout" class="item_line" ajax="no">Logout</a> 
					</div>
					<li><a href="index.php?c=CUtente&a=mostraRichiesteAmicizia"><div class="friends"></div></a></li>
		            <li><a href="index.php?c=CRegistrazione&a=modificaProfilo"><div class="settings"></div></a></li>
     {else}
  		<a href="#">Login</a>
  			<div class="sub_menu">
  				<form method="post" action="index.php" ajax="no">
  					<input type="hidden" name="a" value="autentica" />
  					<input type="hidden" name="c" value="CRegistrazione" />
  					<p>Username:<input type="text" name="username_login" /></p>
  					<p>Password:<input type="password" name="password_login" /></p>
  					<input type="submit" name="submit" value="submit" />
  				</form>
  			</div>
			<li><a><div class="space"></div></a></li>
		<li><a href="index.php?c=CRegistrazione&a=signin"><div class="signin">Sign In</div></a></li>
  		{/if}
  		</span>
        
    
    </ul>
  </div>
  </div>
  <div id="contentwrapper">

	<div id="contentcolumn">
	<div class="main">
	<noscript>
  	<div id="noscript">
  	<p>
  	Attenzione! JavaScript non sta funzionando!
	<br />
  	Per usufruire a pieno dei servizi e dei contenuti di questa applicazione Web, ti invitiamo ad attivarlo subito!
  	<br />
  	Controlla se il tuo browser supporta JavaScript e abilitalo!
  	<br />
  	</p>
  	</div>
  	</noscript>
    {include $page}
    </div>
	</div>
	</div>
	<div id="leftcolumn"> 
	<div class="menu">
	   {if !isset($v_utente)}
	    <h3 class="headerbar"><a href="index.php">Home</a></h3>
        <ul class="submenu">
      	<li><a href="index.php?c=CRegistrazione&a=signin">Registrati</a></li>
      	<li><a href="index.php?c=CRegistrazione&a=autentica">Autenticati</a></li>
      	<li><a href="index.php?c=CRegistrazione&a=attivazioneaccount">Attiva l'account</a></li>
      	<li><a href="index.php?c=CRegistrazione&a=passwordDimenticata">Password dimenticata</a></li>
      	<li><a href="index.php?c=CRegistrazione&a=facebookAuth">Registrati con Facebook</a></li>
		</ul>
      	{else}
      	<h3 class="headerbar"><a href="index.php">Pagine</a></h3>
		<ul class="submenu">
		<li><a href="index.php?c=CHome&a=homepage">Homepage</a></li>
      	<li><a href="index.php?c=CUtente&a=mostraProfilo">Profilo</a></li>
		<li><a href="index.php?c=CFoto&a=viewfotoutente">Foto</a></li>
		<li><a href="index.php?c=CGallery&a=mostraGalleries">Gallery</a></li>
		</ul>
		<h3 class="headerbar"><a href="index.php">Strumenti</a></h3>
		<ul class="submenu">
		<li><a href="index.php?c=CFoto&a=upload">Carica foto</a></li>
		<li><a href="index.php?c=CGallery&a=aggiungiGallery">Crea gallery</a></li>
		<li><a href="index.php?c=CGallery&a=organizzaFoto">Organizza foto e gallery</a></li>
		</ul>
      	{/if}
      

      <!--h3 class="headerbar"><a href="#">Aiuto</a></h3>
      <ul class="submenu">
        <li><a href="#">Faq</a></li>
        <li><a href="#">Search tips</a></li>
        <li><a href="#">Contact Us</a></li>
        <li><a href="#">Licenses</a></li>
        <li><a href="#">About Us</a></li>		
      </ul-->
      
      {if $v_admin != 0 }
	  <h3 class="headerbar"><a href="#">Admin</a></h3>
	  <ul class="submenu">
	  	<li><a href="index.php?c=CAmministratore&a=massMail">Mass Mail</a></li>
	  </ul> 		
	  {/if}
    </div>
	</div>
  </div>
  </div>
</body>
</html>